pull: Only fetch pack files if we want more than 66% of their objects
authorColin Walters <walters@verbum.org>
Wed, 22 Aug 2012 23:43:52 +0000 (19:43 -0400)
committerColin Walters <walters@verbum.org>
Wed, 22 Aug 2012 23:45:01 +0000 (19:45 -0400)
commit79f993beb41f7db36442bd6750ed055b5788068e
treecef61ed85dcf8db679cee783b2aac2ac7409e4d5
parentb36b19eaf80a67f40b0b7b6c543b64fb425fc4d8
pull: Only fetch pack files if we want more than 66% of their objects

This avoids some pathologically bad cases where we would fetch a 25MiB
pack file only to extract one 5KiB object from it.
src/ostree/ostree-pull.c